11. Input Devices.

For this week, work with the inputs, especially with the inputs that have the components with which I am going to make my project.

Description of the work process of the week11

Among the input components we find:

  • The potentiometer
  • The photoresist.
  • The switch.

In the case of the Xiao rp2040, which is the one I will use for my final project and the one I have been building, it has digital and analog inputs.

I will start by talking a little about the Xiao RP2040, this microcontroller (which is truly micro since its size is 20 x 17.5 mm), has the following characteristics:

Powerful CPU with 256KB Flash, 32KB SRAM. The Seeeduino XIAO has 14 GPIO pins with various additional functions such as analog, digital, I2C, UART and SPI. Some pins have multiple functions, such as PWM and DAC for analog signals. Some pins have multiple functions, such as pins A1/D1 to A10/D10 have PWM functions, while pin A0/D0 has a DAC function. This allows you to get real analog signals instead of PWM signals by defining it as an analog pin. Digital inputs allow us to transfer information from the outside to our work. In a switch, information will be sent whether it is pressed or not. A DC input is 5V (direct current) and the 5 or 5V refers to a voltage value that is DC or direct current and the voltage value is 5 volts.

ULTRASONIC SENSOR.

Another thing I'm going to use is an ultrasonic sensor. The ultrasonic sensor is composed of an ultrasound emitter and receiver, this allows the object right in front of it to send an ultrasound pulse and measure the time that passes until said pulse returns.

  • VCC: power pin (5V)
  • TIGGER: Trigger pin. This pin is an input, so the control system, in our case the XIAO RP2040, has to be connected to an output.
  • ECHO: Sensor output pin so it must be connected to an input of the control system.
  • GND: Negative power pin.

reflection and analysis

I found the sensor programming ready on the web (JOHANN PEREZ, 2021), this is for Arduino, I will start working on the XIAO. I haven't done tests yet, but I'll start doing them..

Useful links

Evidence

Gallery